import request from '@/utils/request';

//查询角色权限
export function getInfo(userId: any) {
  return request({
    url: `/system/user/${userId}`,
    method: 'get',
  });
}

// 查询设备列表
export function getDeviceList(query: any) {
  return request({
    url: '/userDevice/getList',
    method: 'get',
    params: query,
  });
}

// 修改设备列表
export function relationUserDevice(data: any) {
  return request({
    url: '/userDevice/update',
    method: 'post',
    data: data,
  });
}
